//
//  WPAfterBingZFBVC.m
//  wobingwoyi
//
//  Created by WGP on 2016/12/16.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPAfterBingZFBVC.h"

@interface WPAfterBingZFBVC ()

@property(nonatomic,strong)UIImageView *iconView;

@end

@implementation WPAfterBingZFBVC

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.view.backgroundColor = GlobalBgColor;
    self.titleLabel.text = @"兑换收益";
    
    [self.rightBtn setTitle:@"完成" forState:UIControlStateNormal];
    [self iconView];
}

-(UIImageView *)iconView
{
    if (_iconView == nil)
    {
        _iconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"dhwxgzh"]];
        [self.view addSubview:_iconView];
        
        [_iconView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.navBarView.mas_bottom).offset(62);
            make.centerX.equalTo(self.view);
        }];
    }
    return _iconView;
}

-(void)rightBtnDidClick
{
    UIViewController *vc = self.navigationController.viewControllers[1];
    [self.navigationController popToViewController:vc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
